﻿using DotNetNuke.Tests.UI.WatiN.Common;
using MbUnit.Framework;
using WatiN.Core;

namespace YourCompany.Modules.$safeprojectname$.UI.Tests
{
    [TestFixture]
    public class _BaseTR: TestBase
    {
        #region "Private Members"
        WatiNBase BaseWatiNObject;
        IE IEInstance;
        #endregion

        #region Setup/Teardown
        /// <summary>
        /// Sets up.
        /// </summary>
        [SetUp]
        public void SetUp()
        {
            const string initialPage = "";

            IEInstance = WatiNUtil.OpenIEInstance(GetDNNUrlWithPage(initialPage), SilentMode, IETimeOut, AutoCloseIE);
            BaseWatiNObject = new WatiNBase(IEInstance, GetDNNUrlWithPage(initialPage));
            BaseWatiNObject.IfSecurityErrorThenBypass();
        }

        /// <summary>
        /// Tears down.
        /// </summary>
        [TearDown]
        public void TearDown()
        {
            WatiNUtil.CloseIEInstance(IEInstance);
        }
        #endregion

        #region "Test Methods"
        /// <summary>
        /// Merchants the landing page_ should_ redirect_ to_ form disclosure2.
        /// </summary>
        [Test]
        [Ignore]
        public void MerchantLandingPage_Should_Redirect_To_FormDisclosure2()
        {
            //Arrange
            //This is where you would instantiate any objects needed to run your testing.

            //Act
            //This is where you take actions on the object created above such as clicking a button, filling in text fields, etc.

            //Assert
            //This is where you put any Assert you need to validate the above actions worked as expected.
        }
        #endregion
    }
}